<include file="Public:header" />
<script type="text/javascript" src="{$APP_PATH}/resources/scripts/region.js"></script>
<script type="text/javascript" src="{$APP_PATH}/resources/scripts/jq_area.js"></script>
<div class="container">
	<div class="page-header">
		<h4>{:L('INFORM THE DETAILS')}</h4>
	</div>
	<div class="row">
		<div class="span12">
			<include file="Public:alert" />
			<input type="hidden" name="announcement_id" value="{$announcement.announcement_id}"/>
				<table class="table" width="95%" border="0" cellspacing="1" cellpadding="0">
					<thead>
						<tr>
							<td colspan="2"><a class="btn btn-primary" href="{:U('announcement/edit','id='.$announcement['announcement_id'])}">{:L('EDIT')}</a>&nbsp; <a class="btn btn-primary" href="{:U('announcement/delete','id='.$announcement['announcement_id'])}">{:L('DELETE')}</a>&nbsp; <a class="btn" href="javascript:history.go(-1)">{:L('RETURN')}</a></td>
						</tr>
					</thead>
					<tbody width="100%">
						<tr colspan="2"><td colspan="2"><span style="font-size:18px;">{$announcement.title}&nbsp; <span style="font-size:12px;"><if condition="$announcement['status'] == 1">(<span style="color:green;">{:L('RELEASE')}</span>)<else />(<span style="color:green;">{:L('HAS BEEN DISCONTINUED')}</span>)</if></span></span> &nbsp; &nbsp;  <if condition="$pre_href"><a href="{$pre_href}">{:L('IN THE PREVIOUS')}</a></if> &nbsp;  &nbsp;  &nbsp;<if condition="$next_href"><a href="{$next_href}">{:L('THE NEXT ARTICLE')}</a></if></td></tr>
						<tr>
							<td width="7%" class="tdleft">{:L('AUTHOR INFORMATION')}</td>						
							<td><notempty name="announcement.owner.user_name"><a class="role_info" rel="{$announcement.owner.role_id}" href="javascript:void(0)">{$announcement.owner.user_name}</a></notempty>
							&nbsp;&nbsp;&nbsp;&nbsp;<if condition="$announcement['update_time'] gt 0">{:L('TIME')}{$announcement.update_time|date="Y-m-d",###}</notempty>
							</td>
						</tr>
						<tr>
							<td class="tdleft">
								{:L('INFORM THE DEPARTMENT')}:
							</td>
							<td>
								<volist name="department_list" id="vo"><if condition="$vo['checked'] eq 'checked'">{$vo['name']}、&nbsp;  &nbsp; </if></volist>
							</td>
						</tr>
						<tr>
							<td class="tdleft">{:L('CONTENT')}</td>
							<td>{$announcement.content}</td>
						</tr>
					</tbody>
				</table>
		</div>
	</div>
</div>
<div class="hide" id="dialog-role-info" title="{:L('DIALOG_USER_INFO')}">loading...</div>
<script type="text/javascript">
$("#dialog-transform").dialog({
    autoOpen: false,
    modal: true,
	width: 600,
	position: ["center",100],
	maxHeight: 400,
	buttons: {
		"Ok": function () {
			$("#transform").submit();
			$(this).dialog("close");
		},
		"Cancel": function () {
			$(this).dialog("close");
		}
	}
});
$("#dialog-role-info").dialog({
    autoOpen: false,
    modal: true,
	width: 600,
	maxHeight: 400,
	position: ["center",100]
});
$(function(){
	$(".role_info").click(function(){
		$role_id = $(this).attr('rel');
		$('#dialog-role-info').dialog('open');
		$('#dialog-role-info').load('{:U("user/dialoginfo","id=")}'+$role_id);
	});
});
</script>
<include file="Public:footer" />